<!-- 搜索框及工具条 -->
<div class="c-head-box">
    <form method="get" action="{:Url('car_brand_list')}">
        <ul>
            <li class="c-head-search">
                <!-- 搜索条件 -->
                <ul>
                    <li><span>车辆品牌编号：</span><input type="text" name="car_brand_id" value="{$car_brand_id}"/></li>
                    <li><span>车辆品牌名称：</span><input type="text" name="car_brand_name" value="{$car_brand_name}"/></li>
                    <li><span>车辆品牌拼音：</span><input type="text" name="car_brand_name_py" value="{$car_brand_name_py}"/></li>
                </ul>
            </li>
            <li class="c-head-button">
                <!-- 操作按钮 -->
                <div class="fr"><input type="submit" class="but_blue" value="搜索"></div>
                <div class="fr"><a class="but_blue" href="{:Url('car_brand_add')}">添加车辆品牌</a></div>
            </li>
        </ul>
    </form>
</div>

<!--用户列表-->
<div class="lists-tab-cont">
    <div class="lists-table">
        <table class="pointer" cellpadding="0" cellspacing="0" border="0">
            <thead>
                <tr>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>编号</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>图标</p></a></th>
                    <th style="width: 15%;" class="tabSort-header"><a class="tabSort-header-inner"><p>名称</p></a></th>
                    <th style="width: 10%;" class="tabSort-header"><a class="tabSort-header-inner"><p>拼音</p></a></th>
                    <th style="width: 6%;" class="tabSort-header"><a class="tabSort-header-inner"><p>排序</p></a></th>
                    <th style="width: 25%;" class="tabSort-header"><a class="tabSort-header-inner"><p>备注</p></a></th>
                    <th style="width: 8%;" class="tabSort-header"><a class="tabSort-header-inner"><p>状态</p></a></th>
                    <th class="tabSort-header"><a class="tabSort-header-inner"><p>操作</p></a></th>
                </tr>
            </thead>
            <tbody>
                {foreach name="car_brand_list" item="info"}
                    <tr>
                        <td>{$info.car_brand_id}</td>
                        <td>{:widget('common/Images/img',array($info["car_brand_url"],30,30))}</td>
                        <td>{$info.car_brand_name}</td>
                        <td>{$info.car_brand_name_py}</td>
                        <td>{$info.order_by}</td>
                        <td>{$info.remark}</td>
                        <td>{:widget('common/Color/color',array('is_delete',$info["is_delete"]))}</td>
                        <td>
                            <a data-type="info-win" data-src="{:Url('car_brand_info',array('car_brand_id'=>$info['car_brand_id']))}" data-title="详情" data-width="60%" data-height="60%" class="blue">详情</a>
                            <a href="{:Url('car_brand_edit',array('car_brand_id'=>$info['car_brand_id']))}" class="blue">编辑</a>
                            {switch name="info.is_delete"}
                            {case value="1"}<a href="{:Url('car_brand_del',array('car_brand_id'=>$info['car_brand_id']))}" class="blue info1">删除车辆品牌</a>{/case}
                            {case value="2"}<a href="{:Url('car_brand_recycle',array('car_brand_id'=>$info['car_brand_id']))}" class="blue info2"><font color="red">还原车辆品牌</font></a>{/case}
                            {/switch}
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    </div>

    <!-- 翻页模板 -->
    <div class="page">
        {$Think.config.page_html}
    </div>
</div>

<!-- JS处理 -->
<script language="javascript">
    $(function(){
        //提示信息
        $("a.info1").click(function(){
            if(confirm("您确定要删除该品牌吗？")){
                return true;
            }else{
                return false;
            }
        });

        //提示信息
        $("a.info2").click(function(){
            if(confirm("您确定要还原该品牌吗？")){
                return true;
            }else{
                return false;
            }
        });
    });
</script>